import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/assets/css/main.css";
import "@/utils/bridge.js";
import "@/filter";
import Vconsole from "vconsole";

import Vant from "vant";
import "vant/lib/index.css";
import utils from "./utils/index";

if (process.env.VUE_APP_CONSOLE_SWITCH == "true") {
  let vConsole = new Vconsole();
  Vue.use(vConsole);
}

Vue.use(Vant);
Vue.prototype.$utils = utils;
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
